package com.tron.controller.order.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 订单创建接受对象
 *
 */
@Data
public class PayOrderAddReq {
    @ApiModelProperty(name = "AppID",value = "AppID",required = true)
    @NotNull(message = "APPID不能为空")
    private String appId; //appID

    @ApiModelProperty(name = "APP名称",value = "APP名称",required = true)
    @NotNull(message = "App名称不能为空")
    private String appName; //app名称

    @ApiModelProperty(name = "订单金额",value = "订单金额",required = true)
    @NotNull(message = "订单金额不能为空")
    private Long amount; //金额

    @ApiModelProperty(name = "订单回调URL",value = "订单回调URL",required = true)
    @NotNull(message = "订单回调地址不能为空")
    private String callbackUrl; //回调URL

    @ApiModelProperty(name = "货币类型 0=TRX 1=TRC",value = "货币类型 0=TRX 1=TRC",required = true)
    @NotNull(message = "货币类型不能为空")
    private Integer coinType; //货币类型

    @ApiModelProperty(name = "用户ID",value = "用户ID",required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId; //用户id

    @ApiModelProperty(name = "备注信息",value = "备注信息")
    private String remark; //备注信息

    @ApiModelProperty(name = "测试地址",value = "测试地址")
    private String addressTest; //备注信息
}
